<?php

$hostname = $_GET["hostname"];

$database = sqlite_open('dhcpd.sqlite');

$delete_action = "DELETE FROM dhcpd WHERE hostname='$hostname'";

$delete = sqlite_exec( $database , $delete_action , $delete_error );

if ( ! $delete ) {
	exit("Error in query: '$delete_error'");
} else {
   require("dhcpd.php");
}


?>